Opioid calculator